package com.coocaa.ops.api.v1.policy.biz;

import com.coocaa.ops.api.v1.policy.mapper.IPolicyMapper;
import com.coocaa.ops.api.v1.policy.model.DeviceInfoModel;
import com.coocaa.ops.common.core.biz.policygroup.entity.PolicyGroupInfoEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tangminghong
 * @date 2020-06-23
 */
@Service
public class PolicyBizImpl implements IPolicyBiz{

    @Autowired
    private IPolicyMapper policyMapper;

    @Override
    public List<PolicyGroupInfoEntity> getPolicyListByDeviceInfo(DeviceInfoModel deviceInfoModel) {
        return policyMapper.queryListForModelChip(deviceInfoModel);
    }
}
